/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sabatec.persistence;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Daniel.Morais
 */
public class JpaUtil {
    
    private static final EntityManagerFactory emf = Persistence.createEntityManagerFactory("SabatecPersistence");
    
    
    public static EntityManager getEntityManager(){
        
        return emf.createEntityManager();
    }
            
    
}
